body {
    margin: 0;
    width: 100%;
    height: 100vh;
    /* to fix */
    background-color: #ccc;
    font-size: 14px;
    padding: 0 12px;
    /* 防止盒子被内边距撑大 */
    box-sizing: border-box;
}

img {
    display: block;
}

input {
    outline: none;
}

/* 公共样式 */
/* 容器 */
.wrapper {
    width: 100%;
    background-color: #fff;
    /* 防止盒子被内边距撑大 */
    box-sizing: border-box;
    padding: 12px;
    justify-content: space-between;
}

/* 多行文字溢出隐藏 */
.text-overflow {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
}

.y-center {
    display: flex;
    /* 侧轴居中 */
    align-items: center;
}

.top-radius {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.bottom-radius {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* 标题部分 */
.title-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 16px 12px;
}

.title-wrapper .go-back-btn {
    font-size: 14px;
}

.title-wrapper .title {
    flex: 1;
    text-align: center;
}

/* 标题占位符 */
.title-wrapper :last-child {
    width: 14px;
}

/* 地址 */
.address-wrapper {
    margin-top: 60px;
}

.address-wrapper img {
    width: 40px;
}

.address-wrapper .user-info {
    flex: 1;
    margin: 0 8px;
}

.address-wrapper .user-name-wrapper {
    margin-bottom: 8px;
}

.address-wrapper .user-name {
    margin-right: 8px;
    font-size: 18px;
}

/* 商品信息 */
.goods-info-wrapper {
    margin-top: 8px;
}

.goods-info-wrapper img {
    width: 80px;
    height: 80px;
    margin-right: 8px;
}

.goods-info-wrapper .goods-info {
    flex: 1;
}

.goods-info-wrapper .goods-name {
    flex: 1;
    height: 40px;
}

.goods-info-wrapper .tag {
    padding: 2px 4px;
    background-color: #e9e9e9;
    font-size: 10px;
    color: #aaa;
}

.goods-info-wrapper .tags,
.goods-info-wrapper .price {
    margin-top: 4px;
}

.goods-info-wrapper .price .current {
    color: red;
    font-size: 18px;
    margin-right: 16px;
}

.goods-info-wrapper .price .prev {
    color: #aaa;
}

/* 快递 */
.express,
.total-price {
    margin-top: 8px;
}
/* 买家备注 */
.remark .content {
    flex: 1;
    margin-left: 8px;
}

.remark .content input {
    width: 100%;
    border: none;
}

/* 折扣 */
.discount .content {
    color: red;
}

/* 合计 */
.total-wrapper {
    height: 80px;
    position: fixed;
    bottom: 0;
    left: 0;
}

.total-wrapper .price {
    color: red;
    font-size: 18px;
    font-weight: 700;
}

/* 支付按钮 */
.total-wrapper .pay-btn {
    background-color: greenyellow;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
}
